str1 = "sdfhsadk i489 59 759"
zimu = 0
shuzi = 0
kongge = 0
for i in range(len(str1)):
    if(str.isalpha(str1[i])):
        zimu += 1
    if(str.isdigit(str1[i])):
        shuzi +=1
    if(str.isspace(str1[i])):
        kongge +=1
    else:
        continue

print(zimu,shuzi,kongge)